<script>
    layui.use(['carousel', 'form'], function () {
        var carousel = layui.carousel,
            form = layui.form;

        //图片轮播
        carousel.render({
            elem: '#driver-carousel-pic'
            ,width: '560px'
            ,height: '305px'
            ,interval: 2000
        });
    });
</script>